package com.dycx.user.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dycx.user.dto.SellerDTO;
import com.dycx.user.entity.SellerDO;
import com.dycx.user.vo.SellerVO;

public interface SellerService extends IService<SellerDO> {

    /**
     * 删除
     */
    Boolean delete(int id);


    Boolean addSeller(SellerDTO sellerDto);

    Boolean edit(SellerDTO sellerDto);

    /**
     * 申请审核
     */
    Boolean sellerApply(SellerDTO userDto);

    /**
     * 商家审核
     */
    Boolean checkSeller(SellerDTO sellerDto);

    /**
     * 根据主键 id 查询
     */
    SellerVO getInfoById(Integer id);

    SellerVO getSellerInfoByUid(Integer uid);

    /**
     * 分页查询
     */
    Page<SellerVO> getPage(SellerDTO sellerDto);

    String lookSellerIdCard(int sellerId);
}
